import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(-1, 1, 50)
# y = 2 * x + 1
y = 2 ** x

print(y)
plt.plot(x, y)
plt.show()